﻿@model NK.Mvc3.Models.ProductInfo

<tr @if (Model != null) {
    @:data-pkey="@Model.ID"
}>
    <td>
        @Html.EditorFor(model => model.Group)
        @Html.ValidationMessageFor(model => model.Group)
    </td>
    @*<td>
        @Html.EditorFor(model => model.GroupCode)
        @Html.ValidationMessageFor(model => model.GroupCode)
    </td>*@
    <td>
        @Html.EditorFor(model => model.BarCode)
        @Html.ValidationMessageFor(model => model.BarCode)
    </td>
    @*<td>
        @Html.EditorFor(model => model.SpecialBarCode)
        @Html.ValidationMessageFor(model => model.SpecialBarCode)
    </td>*@
    <td>
        @Html.EditorFor(model => model.POSDescription)
        @Html.ValidationMessageFor(model => model.POSDescription)
    </td>
    <td>
        @Html.EditorFor(model => model.ProductName)
        @Html.ValidationMessageFor(model => model.ProductName)
    </td>
    <td>
        @Html.EditorFor(model => model.PKT)
        @Html.ValidationMessageFor(model => model.PKT)
    </td>
    <td>
        @Html.EditorFor(model => model.Package)
        @Html.ValidationMessageFor(model => model.Package)
    </td>
    <td>
        @Html.EditorFor(model => model.Cost)
        @Html.ValidationMessageFor(model => model.Cost)
    </td>
    <td>
        @Html.EditorFor(model => model.VAT)
        @Html.ValidationMessageFor(model => model.VAT)
    </td>
    <td>
        @Html.EditorFor(model => model.CostIncludeVAT)
        @Html.ValidationMessageFor(model => model.CostIncludeVAT)
    </td>
    <td>
        @Html.EditorFor(model => model.PriceA)
        @Html.ValidationMessageFor(model => model.PriceA)
    </td>
    <td>
        @Html.EditorFor(model => model.PriceB)
        @Html.ValidationMessageFor(model => model.PriceB)
    </td>
    <td>
        @Html.EditorFor(model => model.PriceC)
        @Html.ValidationMessageFor(model => model.PriceC)
    </td>
    <td>
        @Html.EditorFor(model => model.PriceD)
        @Html.ValidationMessageFor(model => model.PriceD)
    </td>
    @*<td>
        @Html.EditorFor(model => model.IsDeleted)
        @Html.ValidationMessageFor(model => model.IsDeleted)
    </td>*@
    <td>
@if (ViewContext.RouteData.Values["Action"].ToString() == "Edit") {
        <button class="editRow">Save</button><button class="cancelEditRow">Cancel</button>
} else {
        <button class="createRow">Create</button><button class="cancelCreateRow">Cancel</button>
}
    </td>
</tr>
